home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
54455
/
54455.xpi
/
chrome
/
content
/
bup.txt
< prev
next >
Wrap
Extensible Markup Language
|
2009-12-31
|
3KB
|
67 lines
<?xml version="1.0"?>
<overlay id="passfinder"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<statusbar id="status-bar">
<statusbarpanel onclick="gainh();">
<buttonid="shower" class="statusbarpanel-iconic" onclick="passfinder.passfinder();" src="chrome://passfinder/content/icon16.png" />
<button id="hider" class="statusbarpanel-iconic" onclick="passfinder.hidepassword();" src="chrome://passfinder/content/hide.png" style="display:none;" />
</statusbarpanel>
</statusbar>
<script type="application/x-javascript" src="chrome://passfinder/content/passfinder.js" />
</overlay>
function regL(){
window.addEventListener("load", gainh, false);
window.addEventListener("unload", uninit, false);
}
function init() {
//try{document.getElementById("appcontent").removeEventListener("DOMContentLoaded", passfinder.init(evnt), true);}catch(e){}
//if(gBrowser) gBrowser.addEventListener("onunload", passfinder.uninit(evnt), true);
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var mainWindow = wm.getMostRecentWindow("navigator:browser");
var allpfields = mainWindow.getBrowser().selectedBrowser.contentDocument.evaluate('//input[@type="password"]', mainWindow.getBrowser().selectedBrowser.contentDocument, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
if(allpfields.snapshotLength == 0) return;
for (var j = 0; j < allpfields.snapshotLength; j++){
allpfields.snapshotItem(j).addEventListener("click", gainh, false);
}
}
function uninit() {
//var asd=evnt;
//try{if(gBrowser) gBrowser.removeEventListener("unload", passfinder.uninit(), true);}catch(e){}
var allpfields = e.originalTarget.evaluate('//input[@type="password"]', e.originalTarget, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
if(allpfields.snapshotLength == 0) return;
for (var j = 0; j < allpfields.snapshotLength; j++){
allpfields.snapshotItem(j).removeEventListener("click", gainh , false);
}
}
function tryEX() {
if(navigator.preference("extensions.passfinder.enabled")){
evnt.target.type = "text";
evnt.target.focus();
if(navigator.preference("extensions.passfinder.cuscol")){
evnt.target.style.color = navigator.preference("extensions.passfinder.fgc");
evnt.target.style.background = navigator.preference("extensions.passfinder.bgc");
}
}else{
//navigator.preference("extensions.passfinder.enabled", true);
evnt.target.type = "password";
evnt.target.style.color = "#000000";
evnt.target.style.background = "#FFFFFF";
evnt.target.focus();
}
}
function gainh() {
if (navigator.preference("extensions.passfinder.enabled")){
passfinder.hidepassword();
}else{
passfinder.passfinder();
}
regL();